package com.css.bjdt_core.report.entity;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

import com.css.bjdt_core.executive.entity.IType;

import lombok.Data;

@Data
@Table("RPT_TEMPLATE_VALIDATION")
public class RptTemplateValidation {
	@Name
	@Column("VALIDATION_ID")
	private String validationId;
	@Column("VALIDATION_FORMULA")
	private String validationFormula;
	@Column("VALIDATION_DESC")
	private int validationDesc;
	@Column("VALIDATION_TYPE")
	private String validationType;
	@Column("TEMPLATE_ID")
	private String templateId;
	@Column("VALIDATION_FORMULA_SHOW")
	private String validationFormulaShow;
	@Column("VALIDATION_FORMULA_COMMENT")
	private String validationFormulaComment;
	@Column("VALIDATION_FORMULA_REL")
	private String validationFormulaRel;
	//是否关联报表说明
	@Column("IS_RELATION_EXPLAIN")
	private String isRelationExplain;
	//关联的报表说明ID
	@Column("RELATION_EXPLAIN_ID")
	private String relationExplainId;

	public enum ValidationType implements IType {
		//表内行校核
		inner_row(IType.TABLE_INNER_ROW),
		//表内列校核
		inner_col(IType.TABLE_INNER_COL),
		//表内单元格校核
		inner_cell(IType.TABLE_INNER_CELL),
		//表间单元格校核
		outer_cell(IType.TABLE_OUTER_CELL);

		private String key;

		ValidationType(String key) {
			this.key = key;
		}

		public String getKey() {
			return key;
		}
	}

}
